package net.entelijan.cobean.data.naming.jboss;

import java.util.Properties;

import net.entelijan.cobean.data.naming.AbstractNamingClient;

public class JbossNamingClient extends AbstractNamingClient {

	public JbossNamingClient() {
		super();
	}

	@Override
	protected Properties createJndiProperties() {
		Properties props = new Properties();

		props.setProperty(//
				"java.naming.factory.initial",//
				"org.jnp.interfaces.NamingContextFactory");
		props.setProperty(//
				"java.naming.provider.url",// 
				"jnp://localhost:1099");
		props.setProperty(//
				"java.naming.factory.url.pkgs",//
				"org.jboss.naming.client");
		return props;
	}

	@Override
	protected String getName() {
		return "Jboss version ?";
	}

}
